//
//  FeatureDataManager.m
//  dataGathering
//
//  Created by macmini on 15/3/30.
//  Copyright (c) 2015年 shuili. All rights reserved.
//

#import "FeatureDataManager.h"
#import "currentWorkSetManager.h"


@interface FeatureDataManager()
@property(nonatomic, retain)NSMutableArray *dataList;
@property(nonatomic, retain)NSMutableArray *featureDataList;
@end

@implementation FeatureDataManager
static FeatureDataManager *sharedManager=nil;


-(void)initLayersData
{
    _dataList = [[NSMutableArray alloc] initWithCapacity:10];
    _featureDataList = [[NSMutableArray alloc] initWithCapacity:10];;
}

-(id)init
{
    self = [super init];
    if (self) {
        [self initLayersData];
    }
    return self;
}

+(FeatureDataManager *)sharedInstance{
    static dispatch_once_t once;
    dispatch_once(&once, ^{
        sharedManager=[[FeatureDataManager alloc] init];

        
    });
    return sharedManager;
}

- (NSArray*)getAllDataList
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(getAllDataList)]) {
        _dataList = [[NSMutableArray alloc] initWithArray:[self.delegate getAllDataList]];
    }
    return _dataList;
}

@end
